<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pyprocessing.globs</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pyprocessing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pyprocessing-module.html">Package&nbsp;pyprocessing</a> ::
        Module&nbsp;globs
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pyprocessing.globs-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="pyprocessing.globs-module.html">Module pyprocessing.globs</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module pyprocessing.constants=pyprocessing.constants-module.html"><a title="pyprocessing.constants" class="py-name" href="#" onclick="return doclink('link-0', 'constants', 'link-0');">constants</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">pyglet</tt><tt class="py-op">,</tt><tt class="py-name">os</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'mouse'</tt><tt class="py-op">,</tt> <tt class="py-string">'pmouse'</tt><tt class="py-op">,</tt> <tt class="py-string">'attrib'</tt><tt class="py-op">,</tt> <tt class="py-string">'frame'</tt><tt class="py-op">,</tt> <tt class="py-string">'key'</tt><tt class="py-op">,</tt> <tt class="py-string">'canvas'</tt><tt class="py-op">,</tt> <tt class="py-string">'shape'</tt><tt class="py-op">,</tt>  </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line">           <tt class="py-string">'screen'</tt><tt class="py-op">,</tt> <tt class="py-string">'callback'</tt><tt class="py-op">]</tt> </tt>
<a name="mouse"></a><div id="mouse-def"><a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-comment">#************************</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  GLOBALS</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#************************</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt> <a class="py-toggle" href="#" id="mouse-toggle" onclick="return toggle('mouse');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.mouse-class.html">mouse</a><tt class="py-op">:</tt> </tt>
</div><div id="mouse-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="mouse-expanded"><a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line">    <tt class="py-docstring">"""Stores mouse state"""</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line">    <tt id="link-1" class="py-name" targets="Variable pyprocessing.globs.key.pressed=pyprocessing.globs.key-class.html#pressed,Variable pyprocessing.globs.mouse.pressed=pyprocessing.globs.mouse-class.html#pressed,Variable pyprocessing.globs.pmouse.pressed=pyprocessing.globs.pmouse-class.html#pressed"><a title="pyprocessing.globs.key.pressed
pyprocessing.globs.mouse.pressed
pyprocessing.globs.pmouse.pressed" class="py-name" href="#" onclick="return doclink('link-1', 'pressed', 'link-1');">pressed</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> <tt class="py-comment"># Tells if any mouse button is pressed</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line">    <tt id="link-2" class="py-name" targets="Variable pyprocessing.globs.mouse.x=pyprocessing.globs.mouse-class.html#x,Variable pyprocessing.globs.pmouse.x=pyprocessing.globs.pmouse-class.html#x,Variable pyprocessing.pvector.PVector.x=pyprocessing.pvector.PVector-class.html#x"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-2', 'x', 'link-2');">x</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> <tt class="py-comment"># x coordinate of mouse</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line">    <tt id="link-3" class="py-name" targets="Variable pyprocessing.globs.mouse.y=pyprocessing.globs.mouse-class.html#y,Variable pyprocessing.globs.pmouse.y=pyprocessing.globs.pmouse-class.html#y,Variable pyprocessing.pvector.PVector.y=pyprocessing.pvector.PVector-class.html#y"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-3', 'y', 'link-3');">y</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> <tt class="py-comment"># y coordinate of mouse</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">    <tt id="link-4" class="py-name" targets="Variable pyprocessing.globs.mouse.button=pyprocessing.globs.mouse-class.html#button,Variable pyprocessing.globs.pmouse.button=pyprocessing.globs.pmouse-class.html#button"><a title="pyprocessing.globs.mouse.button
pyprocessing.globs.pmouse.button" class="py-name" href="#" onclick="return doclink('link-4', 'button', 'link-4');">button</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># state of mouse buttons</tt> </tt>
</div><a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"> </tt>
<a name="pmouse"></a><div id="pmouse-def"><a name="L18"></a><tt class="py-lineno"> 18</tt> <a class="py-toggle" href="#" id="pmouse-toggle" onclick="return toggle('pmouse');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.pmouse-class.html">pmouse</a><tt class="py-op">:</tt> </tt>
</div><div id="pmouse-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="pmouse-expanded"><a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">    <tt class="py-docstring">"""Store previous position of mouse"""</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line">    <tt id="link-5" class="py-name"><a title="pyprocessing.globs.key.pressed
pyprocessing.globs.mouse.pressed
pyprocessing.globs.pmouse.pressed" class="py-name" href="#" onclick="return doclink('link-5', 'pressed', 'link-1');">pressed</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> <tt class="py-comment"># Tells if any mouse button is pressed</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">    <tt id="link-6" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-6', 'x', 'link-2');">x</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> <tt class="py-comment"># x coordinate of mouse</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">    <tt id="link-7" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-7', 'y', 'link-3');">y</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> <tt class="py-comment"># y coordinate of mouse</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">    <tt id="link-8" class="py-name" targets="Variable pyprocessing.globs.pmouse.savex=pyprocessing.globs.pmouse-class.html#savex"><a title="pyprocessing.globs.pmouse.savex" class="py-name" href="#" onclick="return doclink('link-8', 'savex', 'link-8');">savex</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> <tt class="py-comment"># saved x from the previous frame</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">    <tt id="link-9" class="py-name" targets="Variable pyprocessing.globs.pmouse.savey=pyprocessing.globs.pmouse-class.html#savey"><a title="pyprocessing.globs.pmouse.savey" class="py-name" href="#" onclick="return doclink('link-9', 'savey', 'link-9');">savey</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> <tt class="py-comment"># saved y from the previous frame</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">    <tt id="link-10" class="py-name"><a title="pyprocessing.globs.mouse.button
pyprocessing.globs.pmouse.button" class="py-name" href="#" onclick="return doclink('link-10', 'button', 'link-4');">button</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># state of mouse buttons</tt> </tt>
</div><a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">     </tt>
<a name="key"></a><div id="key-def"><a name="L27"></a><tt class="py-lineno"> 27</tt> <a class="py-toggle" href="#" id="key-toggle" onclick="return toggle('key');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.key-class.html">key</a><tt class="py-op">:</tt> </tt>
</div><div id="key-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="key-expanded"><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">    <tt class="py-docstring">"""Stores keyboard state"""</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">    <tt id="link-11" class="py-name" targets="Variable pyprocessing.globs.key.char=pyprocessing.globs.key-class.html#char"><a title="pyprocessing.globs.key.char" class="py-name" href="#" onclick="return doclink('link-11', 'char', 'link-11');">char</a></tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">    <tt id="link-12" class="py-name" targets="Variable pyprocessing.globs.key.code=pyprocessing.globs.key-class.html#code"><a title="pyprocessing.globs.key.code" class="py-name" href="#" onclick="return doclink('link-12', 'code', 'link-12');">code</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">    <tt id="link-13" class="py-name" targets="Variable pyprocessing.globs.key.modifiers=pyprocessing.globs.key-class.html#modifiers"><a title="pyprocessing.globs.key.modifiers" class="py-name" href="#" onclick="return doclink('link-13', 'modifiers', 'link-13');">modifiers</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">    <tt id="link-14" class="py-name"><a title="pyprocessing.globs.key.pressed
pyprocessing.globs.mouse.pressed
pyprocessing.globs.pmouse.pressed" class="py-name" href="#" onclick="return doclink('link-14', 'pressed', 'link-1');">pressed</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"> </tt>
<a name="canvas"></a><div id="canvas-def"><a name="L34"></a><tt class="py-lineno"> 34</tt> <a class="py-toggle" href="#" id="canvas-toggle" onclick="return toggle('canvas');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.canvas-class.html">canvas</a><tt class="py-op">:</tt> </tt>
</div><div id="canvas-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="canvas-expanded"><a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">    <tt class="py-docstring">"""Stores the drawing window attributes"""</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">    <tt id="link-15" class="py-name" targets="Variable pyprocessing.globs.canvas.window=pyprocessing.globs.canvas-class.html#window"><a title="pyprocessing.globs.canvas.window" class="py-name" href="#" onclick="return doclink('link-15', 'window', 'link-15');">window</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt>  </tt>
</div><a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">    <tt class="py-comment"># These two symbols were relocated to the __builtin__ namespace</tt> </tt>
<a name="screen"></a><div id="screen-def"><a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#width = 100</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#height = 100</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line"><tt class="py-comment"></tt>     </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt> <a class="py-toggle" href="#" id="screen-toggle" onclick="return toggle('screen');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.screen-class.html">screen</a><tt class="py-op">:</tt> </tt>
</div><div id="screen-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="screen-expanded"><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">    <tt class="py-docstring">"""Current window properties."""</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">    <tt id="link-16" class="py-name" targets="Variable pyprocessing.globs.screen.co=pyprocessing.globs.screen-class.html#co"><a title="pyprocessing.globs.screen.co" class="py-name" href="#" onclick="return doclink('link-16', 'co', 'link-16');">co</a></tt> <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">    <tt id="link-17" class="py-name" targets="Variable pyprocessing.globs.screen.pixels=pyprocessing.globs.screen-class.html#pixels"><a title="pyprocessing.globs.screen.pixels" class="py-name" href="#" onclick="return doclink('link-17', 'pixels', 'link-17');">pixels</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">    <tt id="link-18" class="py-name" targets="Variable pyprocessing.globs.screen.width=pyprocessing.globs.screen-class.html#width,Variable pyprocessing.pimage.PImage.width=pyprocessing.pimage.PImage-class.html#width"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-18', 'width', 'link-18');">width</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">    <tt id="link-19" class="py-name" targets="Variable pyprocessing.globs.screen.height=pyprocessing.globs.screen-class.html#height,Variable pyprocessing.pimage.PImage.height=pyprocessing.pimage.PImage-class.html#height"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-19', 'height', 'link-19');">height</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">     </tt>
<a name="attrib"></a><div id="attrib-def"><a name="L48"></a><tt class="py-lineno"> 48</tt> <a class="py-toggle" href="#" id="attrib-toggle" onclick="return toggle('attrib');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.attrib-class.html">attrib</a><tt class="py-op">:</tt> </tt>
</div><div id="attrib-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="attrib-expanded"><a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">    <tt class="py-docstring">"""Drawing attributes"""</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">    <tt id="link-20" class="py-name" targets="Function pyprocessing.attribs.strokeJoin()=pyprocessing.attribs-module.html#strokeJoin,Variable pyprocessing.globs.attrib.strokeJoin=pyprocessing.globs.attrib-class.html#strokeJoin"><a title="pyprocessing.attribs.strokeJoin
pyprocessing.globs.attrib.strokeJoin" class="py-name" href="#" onclick="return doclink('link-20', 'strokeJoin', 'link-20');">strokeJoin</a></tt> <tt class="py-op">=</tt> <tt id="link-21" class="py-name" targets="Variable pyprocessing.MITER=pyprocessing-module.html#MITER,Variable pyprocessing.attribs.MITER=pyprocessing.attribs-module.html#MITER,Variable pyprocessing.colors.MITER=pyprocessing.colors-module.html#MITER,Variable pyprocessing.config.MITER=pyprocessing.config-module.html#MITER,Variable pyprocessing.constants.MITER=pyprocessing.constants-module.html#MITER,Variable pyprocessing.fonts.MITER=pyprocessing.fonts-module.html#MITER,Variable pyprocessing.globs.MITER=pyprocessing.globs-module.html#MITER,Variable pyprocessing.lights'.MITER=pyprocessing.lights%27-module.html#MITER,Variable pyprocessing.materials.MITER=pyprocessing.materials-module.html#MITER,Variable pyprocessing.pimage.MITER=pyprocessing.pimage-module.html#MITER,Variable pyprocessing.primitives.MITER=pyprocessing.primitives-module.html#MITER,Variable pyprocessing.shapes.MITER=pyprocessing.shapes-module.html#MITER,Variable pyprocessing.transformations.MITER=pyprocessing.transformations-module.html#MITER"><a title="pyprocessing.MITER
pyprocessing.attribs.MITER
pyprocessing.colors.MITER
pyprocessing.config.MITER
pyprocessing.constants.MITER
pyprocessing.fonts.MITER
pyprocessing.globs.MITER
pyprocessing.lights'.MITER
pyprocessing.materials.MITER
pyprocessing.pimage.MITER
pyprocessing.primitives.MITER
pyprocessing.shapes.MITER
pyprocessing.transformations.MITER" class="py-name" href="#" onclick="return doclink('link-21', 'MITER', 'link-21');">MITER</a></tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">    <tt id="link-22" class="py-name" targets="Function pyprocessing.attribs.strokeCap()=pyprocessing.attribs-module.html#strokeCap,Variable pyprocessing.globs.attrib.strokeCap=pyprocessing.globs.attrib-class.html#strokeCap"><a title="pyprocessing.attribs.strokeCap
pyprocessing.globs.attrib.strokeCap" class="py-name" href="#" onclick="return doclink('link-22', 'strokeCap', 'link-22');">strokeCap</a></tt> <tt class="py-op">=</tt> <tt id="link-23" class="py-name" targets="Variable pyprocessing.SQUARE=pyprocessing-module.html#SQUARE,Variable pyprocessing.attribs.SQUARE=pyprocessing.attribs-module.html#SQUARE,Variable pyprocessing.colors.SQUARE=pyprocessing.colors-module.html#SQUARE,Variable pyprocessing.config.SQUARE=pyprocessing.config-module.html#SQUARE,Variable pyprocessing.constants.SQUARE=pyprocessing.constants-module.html#SQUARE,Variable pyprocessing.fonts.SQUARE=pyprocessing.fonts-module.html#SQUARE,Variable pyprocessing.globs.SQUARE=pyprocessing.globs-module.html#SQUARE,Variable pyprocessing.lights'.SQUARE=pyprocessing.lights%27-module.html#SQUARE,Variable pyprocessing.materials.SQUARE=pyprocessing.materials-module.html#SQUARE,Variable pyprocessing.pimage.SQUARE=pyprocessing.pimage-module.html#SQUARE,Variable pyprocessing.primitives.SQUARE=pyprocessing.primitives-module.html#SQUARE,Variable pyprocessing.shapes.SQUARE=pyprocessing.shapes-module.html#SQUARE,Variable pyprocessing.transformations.SQUARE=pyprocessing.transformations-module.html#SQUARE"><a title="pyprocessing.SQUARE
pyprocessing.attribs.SQUARE
pyprocessing.colors.SQUARE
pyprocessing.config.SQUARE
pyprocessing.constants.SQUARE
pyprocessing.fonts.SQUARE
pyprocessing.globs.SQUARE
pyprocessing.lights'.SQUARE
pyprocessing.materials.SQUARE
pyprocessing.pimage.SQUARE
pyprocessing.primitives.SQUARE
pyprocessing.shapes.SQUARE
pyprocessing.transformations.SQUARE" class="py-name" href="#" onclick="return doclink('link-23', 'SQUARE', 'link-23');">SQUARE</a></tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">    <tt id="link-24" class="py-name" targets="Function pyprocessing.attribs.textureMode()=pyprocessing.attribs-module.html#textureMode,Variable pyprocessing.globs.attrib.textureMode=pyprocessing.globs.attrib-class.html#textureMode"><a title="pyprocessing.attribs.textureMode
pyprocessing.globs.attrib.textureMode" class="py-name" href="#" onclick="return doclink('link-24', 'textureMode', 'link-24');">textureMode</a></tt> <tt class="py-op">=</tt> <tt id="link-25" class="py-name" targets="Variable pyprocessing.IMAGE=pyprocessing-module.html#IMAGE,Variable pyprocessing.attribs.IMAGE=pyprocessing.attribs-module.html#IMAGE,Variable pyprocessing.colors.IMAGE=pyprocessing.colors-module.html#IMAGE,Variable pyprocessing.config.IMAGE=pyprocessing.config-module.html#IMAGE,Variable pyprocessing.constants.IMAGE=pyprocessing.constants-module.html#IMAGE,Variable pyprocessing.fonts.IMAGE=pyprocessing.fonts-module.html#IMAGE,Variable pyprocessing.globs.IMAGE=pyprocessing.globs-module.html#IMAGE,Variable pyprocessing.lights'.IMAGE=pyprocessing.lights%27-module.html#IMAGE,Variable pyprocessing.materials.IMAGE=pyprocessing.materials-module.html#IMAGE,Variable pyprocessing.pimage.IMAGE=pyprocessing.pimage-module.html#IMAGE,Variable pyprocessing.primitives.IMAGE=pyprocessing.primitives-module.html#IMAGE,Variable pyprocessing.shapes.IMAGE=pyprocessing.shapes-module.html#IMAGE,Variable pyprocessing.transformations.IMAGE=pyprocessing.transformations-module.html#IMAGE"><a title="pyprocessing.IMAGE
pyprocessing.attribs.IMAGE
pyprocessing.colors.IMAGE
pyprocessing.config.IMAGE
pyprocessing.constants.IMAGE
pyprocessing.fonts.IMAGE
pyprocessing.globs.IMAGE
pyprocessing.lights'.IMAGE
pyprocessing.materials.IMAGE
pyprocessing.pimage.IMAGE
pyprocessing.primitives.IMAGE
pyprocessing.shapes.IMAGE
pyprocessing.transformations.IMAGE" class="py-name" href="#" onclick="return doclink('link-25', 'IMAGE', 'link-25');">IMAGE</a></tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">    <tt id="link-26" class="py-name" targets="Variable pyprocessing.globs.attrib.strokeColor=pyprocessing.globs.attrib-class.html#strokeColor"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-26', 'strokeColor', 'link-26');">strokeColor</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt id="link-27" class="py-name" targets="Variable pyprocessing.globs.attrib.fillColor=pyprocessing.globs.attrib-class.html#fillColor"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-27', 'fillColor', 'link-27');">fillColor</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">    <tt id="link-28" class="py-name" targets="Variable pyprocessing.globs.attrib.tintColor=pyprocessing.globs.attrib-class.html#tintColor"><a title="pyprocessing.globs.attrib.tintColor" class="py-name" href="#" onclick="return doclink('link-28', 'tintColor', 'link-28');">tintColor</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">    <tt id="link-29" class="py-name" targets="Function pyprocessing.attribs.strokeWeight()=pyprocessing.attribs-module.html#strokeWeight,Variable pyprocessing.globs.attrib.strokeWeight=pyprocessing.globs.attrib-class.html#strokeWeight"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-29', 'strokeWeight', 'link-29');">strokeWeight</a></tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">    <tt id="link-30" class="py-name" targets="Variable pyprocessing.globs.attrib.font=pyprocessing.globs.attrib-class.html#font"><a title="pyprocessing.globs.attrib.font" class="py-name" href="#" onclick="return doclink('link-30', 'font', 'link-30');">font</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">    <tt id="link-31" class="py-name" targets="Variable pyprocessing.globs.attrib.location=pyprocessing.globs.attrib-class.html#location"><a title="pyprocessing.globs.attrib.location" class="py-name" href="#" onclick="return doclink('link-31', 'location', 'link-31');">location</a></tt> <tt class="py-op">=</tt> <tt class="py-name">pyglet</tt><tt class="py-op">.</tt><tt class="py-name">resource</tt><tt class="py-op">.</tt><tt class="py-name">FileLocation</tt><tt class="py-op">(</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">dirname</tt><tt class="py-op">(</tt><tt class="py-name">__file__</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">    <tt id="link-32" class="py-name" targets="Function pyprocessing.attribs.rectMode()=pyprocessing.attribs-module.html#rectMode,Variable pyprocessing.globs.attrib.rectMode=pyprocessing.globs.attrib-class.html#rectMode"><a title="pyprocessing.attribs.rectMode
pyprocessing.globs.attrib.rectMode" class="py-name" href="#" onclick="return doclink('link-32', 'rectMode', 'link-32');">rectMode</a></tt> <tt class="py-op">=</tt> <tt id="link-33" class="py-name" targets="Variable pyprocessing.constants.CORNER=pyprocessing.constants-module.html#CORNER,Variable pyprocessing.lights'.CORNER=pyprocessing.lights%27-module.html#CORNER"><a title="pyprocessing.constants.CORNER
pyprocessing.lights'.CORNER" class="py-name" href="#" onclick="return doclink('link-33', 'CORNER', 'link-33');">CORNER</a></tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">    <tt id="link-34" class="py-name" targets="Function pyprocessing.attribs.ellipseMode()=pyprocessing.attribs-module.html#ellipseMode,Variable pyprocessing.globs.attrib.ellipseMode=pyprocessing.globs.attrib-class.html#ellipseMode"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-34', 'ellipseMode', 'link-34');">ellipseMode</a></tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name" targets="Variable pyprocessing.constants.CENTER=pyprocessing.constants-module.html#CENTER,Variable pyprocessing.lights'.CENTER=pyprocessing.lights%27-module.html#CENTER"><a title="pyprocessing.constants.CENTER
pyprocessing.lights'.CENTER" class="py-name" href="#" onclick="return doclink('link-35', 'CENTER', 'link-35');">CENTER</a></tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">    <tt id="link-36" class="py-name" targets="Function pyprocessing.attribs.imageMode()=pyprocessing.attribs-module.html#imageMode,Variable pyprocessing.globs.attrib.imageMode=pyprocessing.globs.attrib-class.html#imageMode"><a title="pyprocessing.attribs.imageMode
pyprocessing.globs.attrib.imageMode" class="py-name" href="#" onclick="return doclink('link-36', 'imageMode', 'link-36');">imageMode</a></tt> <tt class="py-op">=</tt> <tt id="link-37" class="py-name"><a title="pyprocessing.constants.CORNER
pyprocessing.lights'.CORNER" class="py-name" href="#" onclick="return doclink('link-37', 'CORNER', 'link-33');">CORNER</a></tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">    <tt id="link-38" class="py-name" targets="Function pyprocessing.fonts.textAlign()=pyprocessing.fonts-module.html#textAlign,Variable pyprocessing.globs.attrib.textAlign=pyprocessing.globs.attrib-class.html#textAlign"><a title="pyprocessing.fonts.textAlign
pyprocessing.globs.attrib.textAlign" class="py-name" href="#" onclick="return doclink('link-38', 'textAlign', 'link-38');">textAlign</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt id="link-39" class="py-name" targets="Variable pyprocessing.constants.LEFT=pyprocessing.constants-module.html#LEFT,Variable pyprocessing.lights'.LEFT=pyprocessing.lights%27-module.html#LEFT"><a title="pyprocessing.constants.LEFT
pyprocessing.lights'.LEFT" class="py-name" href="#" onclick="return doclink('link-39', 'LEFT', 'link-39');">LEFT</a></tt><tt class="py-op">,</tt><tt id="link-40" class="py-name" targets="Variable pyprocessing.constants.BASELINE=pyprocessing.constants-module.html#BASELINE,Variable pyprocessing.lights'.BASELINE=pyprocessing.lights%27-module.html#BASELINE"><a title="pyprocessing.constants.BASELINE
pyprocessing.lights'.BASELINE" class="py-name" href="#" onclick="return doclink('link-40', 'BASELINE', 'link-40');">BASELINE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">    <tt class="py-comment"># color attribs</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-41" class="py-name" targets="Function pyprocessing.colors.colorMode()=pyprocessing.colors-module.html#colorMode,Variable pyprocessing.globs.attrib.colorMode=pyprocessing.globs.attrib-class.html#colorMode"><a title="pyprocessing.colors.colorMode
pyprocessing.globs.attrib.colorMode" class="py-name" href="#" onclick="return doclink('link-41', 'colorMode', 'link-41');">colorMode</a></tt> <tt class="py-op">=</tt> <tt id="link-42" class="py-name" targets="Variable pyprocessing.constants.RGB=pyprocessing.constants-module.html#RGB,Variable pyprocessing.lights'.RGB=pyprocessing.lights%27-module.html#RGB"><a title="pyprocessing.constants.RGB
pyprocessing.lights'.RGB" class="py-name" href="#" onclick="return doclink('link-42', 'RGB', 'link-42');">RGB</a></tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">    <tt id="link-43" class="py-name" targets="Variable pyprocessing.globs.attrib.colorRange=pyprocessing.globs.attrib-class.html#colorRange"><a title="pyprocessing.globs.attrib.colorRange" class="py-name" href="#" onclick="return doclink('link-43', 'colorRange', 'link-43');">colorRange</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">255.0</tt><tt class="py-op">,</tt><tt class="py-number">255.0</tt><tt class="py-op">,</tt><tt class="py-number">255.0</tt><tt class="py-op">,</tt><tt class="py-number">255.0</tt><tt class="py-op">)</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">    <tt class="py-comment"># light attribs</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-44" class="py-name" targets="Variable pyprocessing.globs.attrib.lights=pyprocessing.globs.attrib-class.html#lights,Function pyprocessing.lights'.lights()=pyprocessing.lights%27-module.html#lights"><a title="pyprocessing.globs.attrib.lights
pyprocessing.lights'.lights" class="py-name" href="#" onclick="return doclink('link-44', 'lights', 'link-44');">lights</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">    <tt id="link-45" class="py-name" targets="Variable pyprocessing.globs.attrib.lightCount=pyprocessing.globs.attrib-class.html#lightCount"><a title="pyprocessing.globs.attrib.lightCount" class="py-name" href="#" onclick="return doclink('link-45', 'lightCount', 'link-45');">lightCount</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">    <tt id="link-46" class="py-name" targets="Variable pyprocessing.globs.attrib.lightSpecular=pyprocessing.globs.attrib-class.html#lightSpecular,Function pyprocessing.lights'.lightSpecular()=pyprocessing.lights%27-module.html#lightSpecular"><a title="pyprocessing.globs.attrib.lightSpecular
pyprocessing.lights'.lightSpecular" class="py-name" href="#" onclick="return doclink('link-46', 'lightSpecular', 'link-46');">lightSpecular</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">    <tt id="link-47" class="py-name" targets="Variable pyprocessing.globs.attrib.lightFalloff=pyprocessing.globs.attrib-class.html#lightFalloff,Function pyprocessing.lights'.lightFalloff()=pyprocessing.lights%27-module.html#lightFalloff"><a title="pyprocessing.globs.attrib.lightFalloff
pyprocessing.lights'.lightFalloff" class="py-name" href="#" onclick="return doclink('link-47', 'lightFalloff', 'link-47');">lightFalloff</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> <tt class="py-comment"># constant, linear, quadratic</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">    <tt class="py-comment"># depth testing</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-48" class="py-name" targets="Variable pyprocessing.globs.attrib.depthTest=pyprocessing.globs.attrib-class.html#depthTest"><a title="pyprocessing.globs.attrib.depthTest" class="py-name" href="#" onclick="return doclink('link-48', 'depthTest', 'link-48');">depthTest</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">    <tt id="link-49" class="py-name" targets="Function pyprocessing.attribs.texture()=pyprocessing.attribs-module.html#texture,Variable pyprocessing.globs.attrib.texture=pyprocessing.globs.attrib-class.html#texture"><a title="pyprocessing.attribs.texture
pyprocessing.globs.attrib.texture" class="py-name" href="#" onclick="return doclink('link-49', 'texture', 'link-49');">texture</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line"> </tt>
<a name="frame"></a><div id="frame-def"><a name="L75"></a><tt class="py-lineno"> 75</tt> <a class="py-toggle" href="#" id="frame-toggle" onclick="return toggle('frame');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.frame-class.html">frame</a><tt class="py-op">:</tt> </tt>
</div><div id="frame-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="frame-expanded"><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">    <tt class="py-docstring">"""Frame rate and the like."""</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">    <tt id="link-50" class="py-name" targets="Variable pyprocessing.globs.frame.loop=pyprocessing.globs.frame-class.html#loop,Function pyprocessing.loop()=pyprocessing-module.html#loop"><a title="pyprocessing.globs.frame.loop
pyprocessing.loop" class="py-name" href="#" onclick="return doclink('link-50', 'loop', 'link-50');">loop</a></tt><tt class="py-op">=</tt><tt class="py-name">True</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">    <tt id="link-51" class="py-name" targets="Variable pyprocessing.globs.frame.rate=pyprocessing.globs.frame-class.html#rate"><a title="pyprocessing.globs.frame.rate" class="py-name" href="#" onclick="return doclink('link-51', 'rate', 'link-51');">rate</a></tt><tt class="py-op">=</tt><tt class="py-number">10</tt> <tt class="py-comment"># estimated frame rate</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">    <tt id="link-52" class="py-name" targets="Variable pyprocessing.globs.frame.targetRate=pyprocessing.globs.frame-class.html#targetRate"><a title="pyprocessing.globs.frame.targetRate" class="py-name" href="#" onclick="return doclink('link-52', 'targetRate', 'link-52');">targetRate</a></tt> <tt class="py-op">=</tt> <tt class="py-number">60</tt> <tt class="py-comment"># the target frame rate</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">    <tt id="link-53" class="py-name" targets="Variable pyprocessing.globs.frame.count=pyprocessing.globs.frame-class.html#count"><a title="pyprocessing.globs.frame.count" class="py-name" href="#" onclick="return doclink('link-53', 'count', 'link-53');">count</a></tt><tt class="py-op">=</tt><tt class="py-number">0</tt> <tt class="py-comment"># number of frames displayed since the application started</tt> </tt>
</div><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">     </tt>
<a name="shape"></a><div id="shape-def"><a name="L82"></a><tt class="py-lineno"> 82</tt> <a class="py-toggle" href="#" id="shape-toggle" onclick="return toggle('shape');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.shape-class.html">shape</a><tt class="py-op">:</tt> </tt>
</div><div id="shape-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="shape-expanded"><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">    <tt class="py-docstring">"""Attributes for shapes."""</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">    <tt id="link-54" class="py-name" targets="Variable pyprocessing.globs.shape.quadric=pyprocessing.globs.shape-class.html#quadric"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-54', 'quadric', 'link-54');">quadric</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># Stores a gluQuadricObject</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">    <tt id="link-55" class="py-name" targets="Variable pyprocessing.globs.shape.tess=pyprocessing.globs.shape-class.html#tess"><a title="pyprocessing.globs.shape.tess" class="py-name" href="#" onclick="return doclink('link-55', 'tess', 'link-55');">tess</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># Stores a gluTesselatorObject</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">    <tt id="link-56" class="py-name" targets="Variable pyprocessing.globs.shape.ellipseFillDL=pyprocessing.globs.shape-class.html#ellipseFillDL"><a title="pyprocessing.globs.shape.ellipseFillDL" class="py-name" href="#" onclick="return doclink('link-56', 'ellipseFillDL', 'link-56');">ellipseFillDL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># Stores a display list for a filled ellipse</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">    <tt id="link-57" class="py-name" targets="Variable pyprocessing.globs.shape.ellipseStrokeDL=pyprocessing.globs.shape-class.html#ellipseStrokeDL"><a title="pyprocessing.globs.shape.ellipseStrokeDL" class="py-name" href="#" onclick="return doclink('link-57', 'ellipseStrokeDL', 'link-57');">ellipseStrokeDL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># Stores a display list for an outline ellipse</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">    <tt id="link-58" class="py-name" targets="Variable pyprocessing.globs.shape.cubeFillVL=pyprocessing.globs.shape-class.html#cubeFillVL"><a title="pyprocessing.globs.shape.cubeFillVL" class="py-name" href="#" onclick="return doclink('link-58', 'cubeFillVL', 'link-58');">cubeFillVL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># Stores a vertex list for drawing a cube with quads</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">    <tt id="link-59" class="py-name" targets="Variable pyprocessing.globs.shape.cubeStrokeVL=pyprocessing.globs.shape-class.html#cubeStrokeVL"><a title="pyprocessing.globs.shape.cubeStrokeVL" class="py-name" href="#" onclick="return doclink('link-59', 'cubeStrokeVL', 'link-59');">cubeStrokeVL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># Stores a vertex list for drawing a cube with line segments</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">    <tt id="link-60" class="py-name" targets="Variable pyprocessing.globs.shape.type=pyprocessing.globs.shape-class.html#type"><a title="pyprocessing.globs.shape.type" class="py-name" href="#" onclick="return doclink('link-60', 'type', 'link-60');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># stores the type of the shape as passed to function beginShape</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">    <tt id="link-61" class="py-name" targets="Variable pyprocessing.globs.shape.sphereDetail=pyprocessing.globs.shape-class.html#sphereDetail,Function pyprocessing.shapes.sphereDetail()=pyprocessing.shapes-module.html#sphereDetail"><a title="pyprocessing.globs.shape.sphereDetail
pyprocessing.shapes.sphereDetail" class="py-name" href="#" onclick="return doclink('link-61', 'sphereDetail', 'link-61');">sphereDetail</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">20</tt><tt class="py-op">,</tt><tt class="py-number">10</tt><tt class="py-op">)</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">    <tt id="link-62" class="py-name" targets="Variable pyprocessing.globs.shape.bezierDetail=pyprocessing.globs.shape-class.html#bezierDetail,Function pyprocessing.shapes.bezierDetail()=pyprocessing.shapes-module.html#bezierDetail"><a title="pyprocessing.globs.shape.bezierDetail
pyprocessing.shapes.bezierDetail" class="py-name" href="#" onclick="return doclink('link-62', 'bezierDetail', 'link-62');">bezierDetail</a></tt> <tt class="py-op">=</tt> <tt class="py-number">40</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">    <tt id="link-63" class="py-name" targets="Variable pyprocessing.globs.shape.curveDetail=pyprocessing.globs.shape-class.html#curveDetail,Function pyprocessing.shapes.curveDetail()=pyprocessing.shapes-module.html#curveDetail"><a title="pyprocessing.globs.shape.curveDetail
pyprocessing.shapes.curveDetail" class="py-name" href="#" onclick="return doclink('link-63', 'curveDetail', 'link-63');">curveDetail</a></tt> <tt class="py-op">=</tt> <tt class="py-number">20</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">    <tt id="link-64" class="py-name" targets="Variable pyprocessing.globs.shape.ellipseDetail=pyprocessing.globs.shape-class.html#ellipseDetail"><a title="pyprocessing.globs.shape.ellipseDetail" class="py-name" href="#" onclick="return doclink('link-64', 'ellipseDetail', 'link-64');">ellipseDetail</a></tt> <tt class="py-op">=</tt> <tt class="py-number">100</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">    <tt id="link-65" class="py-name" targets="Variable pyprocessing.globs.shape.tension=pyprocessing.globs.shape-class.html#tension"><a title="pyprocessing.globs.shape.tension" class="py-name" href="#" onclick="return doclink('link-65', 'tension', 'link-65');">tension</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0.5</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">    <tt id="link-66" class="py-name" targets="Variable pyprocessing.globs.shape.bezierBlend=pyprocessing.globs.shape-class.html#bezierBlend"><a title="pyprocessing.globs.shape.bezierBlend" class="py-name" href="#" onclick="return doclink('link-66', 'bezierBlend', 'link-66');">bezierBlend</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">    <tt id="link-67" class="py-name" targets="Variable pyprocessing.globs.shape.vtx=pyprocessing.globs.shape-class.html#vtx"><a title="pyprocessing.globs.shape.vtx" class="py-name" href="#" onclick="return doclink('link-67', 'vtx', 'link-67');">vtx</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">    <tt id="link-68" class="py-name" targets="Variable pyprocessing.globs.shape.nrm=pyprocessing.globs.shape-class.html#nrm"><a title="pyprocessing.globs.shape.nrm" class="py-name" href="#" onclick="return doclink('link-68', 'nrm', 'link-68');">nrm</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
</div><a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">     </tt>
<a name="callback"></a><div id="callback-def"><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt> <a class="py-toggle" href="#" id="callback-toggle" onclick="return toggle('callback');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.globs.callback-class.html">callback</a><tt class="py-op">:</tt> </tt>
</div><div id="callback-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="callback-expanded"><a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">    <tt class="py-docstring">"""Call back functions."""</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">     </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="callback.dummy"></a><div id="callback.dummy-def"><a name="L105"></a><tt class="py-lineno">105</tt> <a class="py-toggle" href="#" id="callback.dummy-toggle" onclick="return toggle('callback.dummy');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.globs.callback-class.html#dummy">dummy</a><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="callback.dummy-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="callback.dummy-expanded"><a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-docstring">"""A callback function that does nothing."""</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">         </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">    <tt class="py-string">"""All of these are imported from the user space</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt class="py-string">    by the 'run' function or else fall back to dummy"""</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">    <tt class="py-name">draw</tt> <tt class="py-op">=</tt> <tt class="py-name">mousePressed</tt> <tt class="py-op">=</tt> <tt class="py-name">mouseReleased</tt> <tt class="py-op">=</tt> <tt class="py-name">mouseClicked</tt> <tt class="py-op">=</tt> <tt class="py-name">mouseDragged</tt> <tt class="py-op">=</tt> \ </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">           <tt class="py-name">mouseMoved</tt> <tt class="py-op">=</tt> <tt class="py-name">keyPressed</tt> <tt class="py-op">=</tt> <tt class="py-name">keyReleased</tt> <tt class="py-op">=</tt> <tt class="py-name">keyTyped</tt> <tt class="py-op">=</tt> <tt class="py-name">exit</tt> <tt class="py-op">=</tt> \ </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">           <tt class="py-name">screenResized</tt> <tt class="py-op">=</tt> <tt id="link-69" class="py-name" targets="Static Method pyprocessing.globs.callback.dummy()=pyprocessing.globs.callback-class.html#dummy"><a title="pyprocessing.globs.callback.dummy" class="py-name" href="#" onclick="return doclink('link-69', 'dummy', 'link-69');">dummy</a></tt> </tt>
</div><a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pyprocessing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Jun 11 22:06:48 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
